package com.shuai.frame.bootstrap;

import com.shuai.frame.config.XSRpcApplicationContext;
import com.shuai.frame.factory.RegistryFactory;
import com.shuai.frame.registry.RegistryCenter;

import java.util.List;

/**
 * @author bxs
 * @version 1.0
 * @Date 2024/7/30
 */
public class ConsumerBootstrap {
    public static void init() {
        RegistryCenter registryCenter = RegistryFactory.getRegistryCenter(XSRpcApplicationContext.getXSRpConfig().getRegistryCenterConfig().getRegistryType());
        registryCenter.init(XSRpcApplicationContext.getXSRpConfig().getRegistryCenterConfig());
    }
}
